#include <bits/stdc++.h>
using namespace std;
int main() {
  string n;
  cin >> n;
  int i = 0;
  int j = n.size() - 1;
  while (i <= j) {
    if (n[i] == n[j]) {
      i++;
      j--;
    } else {
      // cout << "NO";
      reverse(n.begin(), n.end());
      cout << n;
      return 0;
    }
  }
  cout << "YES";
  return 0;
}